﻿<Page x:Class="ScoreMS.Views.CourseView"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="300" d:DesignWidth="618"
	Title="CourseView">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="72" />
            <RowDefinition Height="*" />
        </Grid.RowDefinitions>
        <TextBlock Text="所有课程列表" TextAlignment="Center" FontSize="24" Margin="0,26,0,0"></TextBlock>
        <DataGrid Grid.Row="1" AutoGenerateColumns="False" HorizontalAlignment="Left" Name="dataGrid1" VerticalAlignment="Top">
            <DataGrid.Columns>
                <DataGridTextColumn Header="课程编号" Width="*" Binding="{Binding course_id}"/>
                <DataGridTextColumn Header="课程名称" Width="*" Binding="{Binding course_name}"/>
                <DataGridTextColumn Header="学分" Width="*" Binding="{Binding course_points}"/>
                <DataGridTextColumn Header="课程类型" Width="*" Binding="{Binding course_type}"/>
                <DataGridTextColumn Header="学生类型" Width="*" Binding="{Binding course_stutype}"/>
                <DataGridTextColumn Header="学时X" Width="*" Binding="{Binding course_hours_x}"/>
                <DataGridTextColumn Header="学时Y" Width="*" Binding="{Binding course_hours_y}"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</Page>


<!--
                <TextBlock Name="textBlock1" Text="课程编号" Height="23" HorizontalAlignment="Right" VerticalAlignment="Top" Width="102" />
                <TextBox Grid.Row="0" Grid.Column="1" Name="txtcourse_id" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" />

                <TextBlock Grid.Row="1" Height="23" Name="textBlock2" Text="课程名称" VerticalAlignment="Top" HorizontalAlignment="Right" Width="102" />
                <TextBox Grid.Row="1" Grid.Column="1" Name="txtcourse_name" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120"/>

                <TextBlock Grid.Row="2" Name="textBlock0" Text="学分" Height="23" HorizontalAlignment="Right" VerticalAlignment="Top" Width="92" />
                <TextBox Grid.Row="2" Grid.Column="1" Name="txtcourse_points" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" />

                <TextBlock Grid.Row="3" Name="textBlock3" Text="课程类型（'必修','限选','任选'）" Height="23" HorizontalAlignment="Right" VerticalAlignment="Top" Width="170" />
                <TextBox Grid.Row="3" Grid.Column="1" Name="txtcourse_type" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" />

                <TextBlock Grid.Row="4" Name="textBlock4" Text="学生类型（'本科生','研究生'）" Height="23" HorizontalAlignment="Right" VerticalAlignment="Top" Width="170" />
                <TextBox Grid.Row="4" Grid.Column="1" Name="txtcourse_stutype" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" />

                <TextBlock Grid.Row="5" Name="textBlock5" Text="学时X" Height="23" HorizontalAlignment="Right" VerticalAlignment="Top" Width="92" />
                <TextBox Grid.Row="5" Grid.Column="1" Name="txtcourse_hours_x" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" />

                <TextBlock Grid.Row="6" Name="textBlock6" Text="学时Y" Height="23" HorizontalAlignment="Right" VerticalAlignment="Top" Width="92" />
                <TextBox Grid.Row="6" Grid.Column="1" Name="txtcourse_hours_y" Height="23" HorizontalAlignment="Left" VerticalAlignment="Top" Width="120" />
                -->